package com.snake.base;


import lombok.Getter;
import lombok.Setter;
import lombok.extern.slf4j.Slf4j;

/**
 * @author : jjbin
 * @date : 10:23 2020/9/28
 */
@Getter
@Setter
@Slf4j
public class ResponseBase {

    private Integer code;

    private String msg;

    private Object data;

    public ResponseBase() {

    }

    public ResponseBase(Integer code, String msg, Object data) {
        super();
        this.code = code;
        this.msg = msg;
        this.data = data;
    }

    @Override
    public String toString() {
        return "ResponseBase [code=" + code + ", msg=" + msg + ", data=" + data + "]";
    }

    public static void main(String[] args) {
        ResponseBase responseBase = new ResponseBase();
        responseBase.setData("123456");
        responseBase.setMsg("success");
        responseBase.setCode(200);
        System.out.println(responseBase.toString());
        log.info("snake...");
    }
}
